package com.zirun.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Author: Zirun.Xin
 * @Date: 2025/5/15 下午3:10
 * @Version: 1.0
 * @Description: 测试控制层
 */
@RestController
@RequestMapping(value = "/api/v1/test")
@Api(tags = "测试案例")
public class TestController {

    /**
     * 测试案例1
     *
     * @param content 输入内容
     * @return 输出内容
     */
    @GetMapping(value = "/demo1")
    @ApiOperation(value = "测试案例1", notes = "测试api接口运行情况")
    public String demo1(@ApiParam(value = "输入内容", required = true, defaultValue = "你好")
                        @RequestParam(value = "content") String content) {
        return content;
    }
}
